<script>$(".warning").remove();</script>
		<style>
			body {
				font-size: 12px;
				background-color: #A1B661;
			}
			#firstcol {
				width: 262px;
				float: left;
				margin-bottom: 40px;
			}
			#secondcol {
				width: 55%;
				float: left;
				margin-left: 20px;
			}
			.data_link, .rank {
				font-size: 10px;
			}
			.relevance {
				font-size: 8px;
			}
			.coltags h5{
				background: url("/static/css/images/ui-bg_glass_75_dadada_1x400.png") repeat-x scroll 50% 50% #DADADA;
			    border: 1px solid #999999;
			    color: #212121;
			    font-weight: normal;
				background: url("/static/css/images/ui-bg_glass_75_e6e6e6_1x400.png") repeat-x scroll 50% 50% #E6E6E6;
				margin-top: 1px;
				font-size: 100%;
			    line-height: 1.3;
			    list-style: none outside none;
			    outline: 0 none;
			    padding: 0;
			    text-decoration: none;
				font-family: Verdana,Arial,sans-serif;
    			font-size: 1.1em;
				padding-left: 2.2em;
				display: block;
			    font-size: 1em;
			    padding: 0.5em 0.5em 0.5em 0.7em;
				color: #555555;
    			text-decoration: none;
			}
			h5 {
				margin-top: 6px !important;
				margin-bottom: 0;
			}
			h3 {
				margin-top: 8px;
			}
			#reload_link {
				margin-top: 10px;
				margin-bottom: 30px;
				height: 35px;
			}
			#reload_link a{
				text-align: center;
				font-family: Verdana,Arial,sans-serif;
				font-size: 16px;
				text-decoration: none;
				width: 100%;
				height: 100%;
				display: block;
				color: #FF9900;
				border: 1px solid #33CCFF;
				background-color: #6600FF;
				padding-top: 14px;
			}
			#reload_link a:hover{
				background-color: #A366E0;
			}
		</style>
<div id="firstcol" >
	<div id="reload_link" class="ui-corner-top ui-corner-bottom">
		<a class="ui-corner-top ui-corner-bottom" href="/calais-api/">Try Again</a>
	</div>
	{% if topics|length > 0 %}
	<h3>Topics</h3>
	<div class="coltags">
		{% for top in topics %}
			<h5 class="ui-corner-top ui-corner-bottom"><b>{{ top.1 }}:</b> <span class="rank">score={{ top.0 }}</span></h5>
		{% endfor %}
	</div>
	{% endif %}
	{% if entity_types|length > 0 %}
	<h3>Entities</h3>
	<div id="notaccordion">
		{% for etype in entity_types %}
		<h5><a href="#">{{ etype }}</a></h5>
		<div>
		<p>
		{% for type,datalist in entities.items %}
			{% if type == etype %}
				{% for datum in datalist %}
					<b>{{ datum.1 }}:</b> <span class="rank">relevance={{ datum.0 }}</span><br>
					{% if datum.2 %}
						<a class="data_link" target="_blank" href="{{ datum.2 }}">more info</a><br>
					{% endif %}
					<br>
				{% endfor %}
			{% endif %}
		{% endfor %}
		</p>
		</div>
	{% endfor %}
	</div>
	{% endif %}
	{% if social_tags|length > 0 %}
	<h3>Social Tags</h3>
	<div class="coltags">
		{% for soc in social_tags %}
			<h5 class="ui-corner-top ui-corner-bottom"><b>{{ soc.1 }}:</b> <span class="rank">importance={{ soc.0 }}</span></h5>
		{% endfor %}
	</div>
	{% endif %}
</div>
<div id="secondcol">
	<p>{{ content }}</p>
</div>
<script>
$("#notaccordion").addClass("ui-accordion ui-accordion-icons ui-widget ui-helper-reset")
	.find("h5")
	.addClass("ui-accordion-header ui-helper-reset ui-corner-top ui-state-default ui-corner-bottom")
	.hover(function() { $(this).toggleClass("ui-state-hover"); })
	.prepend('<span class="ui-icon ui-icon-triangle-1-e"></span>')
	.click(function() {
 		$(this)
		.toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom")
		.find("> .ui-icon").toggleClass("ui-icon-triangle-1-e ui-icon-triangle-1-s").end()
		.next().toggleClass("ui-accordion-content-active").slideToggle();
		return false;
 	})
	.next()
	.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom")
	.hide();
</script> 